<?php
include('include/config.inc.php');
$partyId      ="";
$address      ="";
$mobile1      ="";
$city         ="";
$companyName  ="";

if(isset($_REQUEST['partyId']) && $_REQUEST['partyId'] > 0)
{
  $selectAddress = "SELECT address,mobile1,city,contactPerson1
                      FROM party
                     WHERE partyId = ".$_GET['partyId'];
  $selectAddressRes = mysql_query($selectAddress);
  if($addressRow = mysql_fetch_array($selectAddressRes))
    $address        = $addressRow['address'];
    $mobile1        = $addressRow['mobile1'];
    $city           = $addressRow['city'];
    $contactPerson1 = $addressRow['contactPerson1'];
  
  echo $contactPerson1." - ".$mobile1;
  echo "\n";
  echo $address;
  echo "\n";
  echo $city;
}
?>